/**
 * 
 */
package cn.wangsy.zhidao.p20170408;

/**
 * @author wangsy
 * @date 2017年4月8日下午12:31:04
 */
public class Sort {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		sort(1, 2, 3);
		sort(1, 3, 2);
		sort(2, 1, 3);
		sort(2, 3, 1);
		sort(3, 1, 2);
		sort(3, 2, 1);
	}

	public static void sort(int a, int b, int c){
	
		if(a > b){
			if(b > c){
				System.out.println(c+"<"+b+"<"+a);
			}else{
				if(a > c){
					System.out.println(b+"<"+c+"<"+a);
				}else{
					System.out.println(b+"<"+a+"<"+c);
				}
			}
		}else{
			if(a > c){
				System.out.println(c+"<"+a+"<"+b);
			}else{
				if(b > c){
					System.out.println(a+"<"+c+"<"+b);
				}else{
					System.out.println(a+"<"+b+"<"+c);
				}
			}
		}
		
	}
	
}
